/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.integral.web.model.dto.manager;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import com.medusa.gruul.integral.api.entity.IntegralRule;
import com.medusa.gruul.integral.api.entity.IntegralRuleParameter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Description: 积分参数dto
 * @Author: xiaoq
 * @Date : 2019/12/4 9:15
 */
@Data
@ApiModel(value = "获取积分规则修改")
public class IntegralRuleParameterDto {
	private Long id;

	@ApiModelProperty(value = "name")
	private String key;

	@ApiModelProperty(value = "存储各个规则的值")
	private Integer value;

	@ApiModelProperty(value = "所属类型 (0.分享  1.登入  2.步数  3.签到)")
	private Integer belongType;

	@ApiModelProperty(value = "积分规则表id")
	private Long integralRuleId;

	public IntegralRuleParameter coverIntegralRuleParameter() {
		IntegralRuleParameter integralRuleParameter = new IntegralRuleParameter();
		BeanUtil.copyProperties(this, integralRuleParameter);
		return integralRuleParameter;
	}

}
